package com.example.rmqdemo.listener;


import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Component;

/**
 * @Author:徐莹
 * @Date:2025/02/28 17:03:11
 */
//
//
//@Component
//public class MQListener {
//    @RabbitListener(queues = "queue")
//    public void receive(String message){
//        System.out.println("收到消息："+message);
//    }
//}
